#include "time.h"
#include <windows.h>
#pragma warning(disable: 4201)
#include <MMSystem.h>

namespace gecko
{

void GetLocalTime(SystemTime* _time)
{
	SYSTEMTIME systemTime;
	GetLocalTime(&systemTime);
	_time->hour = systemTime.wHour;
	_time->min = systemTime.wMinute;
	_time->sec = systemTime.wSecond;
	_time->msec = systemTime.wMilliseconds;
}

unsigned long GetMilliseconds()
{
	return timeGetTime();
}

}

